package com.whpost.service.excel.stamp;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.BorderStyleEnum;
import com.alibaba.excel.enums.poi.FillPatternTypeEnum;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.net.URL;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
// 头背景设置
@HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, horizontalAlignment = HorizontalAlignmentEnum.CENTER, borderLeft = BorderStyleEnum.THIN, borderTop = BorderStyleEnum.THIN, borderRight = BorderStyleEnum.THIN, borderBottom = BorderStyleEnum.THIN)
//标题高度
@HeadRowHeight(20)
//内容高度
@ContentRowHeight(60)
//内容居中,左、上、右、下的边框显示
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, borderLeft = BorderStyleEnum.THIN, borderTop = BorderStyleEnum.THIN, borderRight = BorderStyleEnum.THIN, borderBottom = BorderStyleEnum.THIN)
public class MxEntity {

    @ExcelProperty(value = "订单号流水号")
    @ColumnWidth(60)
    private String lsh;

    @ExcelProperty(value = "活动名称")
    @ColumnWidth(60)
    private String hdmc;

    @ExcelProperty(value = "打包文件名称")
    @ColumnWidth(60)
    private String dbwjm;

    @ExcelProperty(value = "收件人")
    @ColumnWidth(60)
    private String sjr;

    @ExcelProperty(value = "收件地址")
    @ColumnWidth(60)
    private String sjrdz;

    @ExcelProperty(value = "收件人电话")
    @ColumnWidth(60)
    private String sjrdh;


    @ExcelProperty(value = "照片")
    @ColumnWidth(30)
    private byte[] image;

}

